#ifndef _CHECKPOINT_H_
#define _CHECKPOINT_H_

#include "Object.h"

class CheckPoint : public Object
{
public:
	/*
	 *	set/get properties
	 */
	OBJECT_TYPE getObjectType();

	/*
	 *	constructor/destructor
	 */
	CheckPoint(LPDIRECT3DDEVICE9 d3ddv, LPDIRECT3DSURFACE9 BackBuffer, LPD3DXSPRITE SpriteHandler, float x, float y, int ID, int Obj_state);
	~CheckPoint();


	/*
	 *	method
	 */
	void Render();
	void Update(list<Object*>* staObjs, list<Object*>* dynObjs, DxInput* input, float TPF);

	void update(list<Object*>* obj_list, DxInput* input, float TPF);
	void render(int cameraX, int cameraY);
	
	void ResetRect();
};

#endif